package com.eqdd.yiqidian.ui.gongneng.car;

import android.view.View;

import com.eqdd.yiqidian.box.ItemDecoration.SectionDividerItemDecoration;
import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;
import com.eqdd.yiqidian.utils.DensityUtil;

/**
 * @author吕志豪 .
 * @date 17-11-21  下午1:27.
 * Github :https://github.com/lvzhihao100
 * E-Mail：1030753080@qq.com
 * 简书 :http://www.jianshu.com/u/6e525b929aac
 */

public class CarActivity extends BaseEnterActivity {
    Class[] classes = new Class[]{
            CarListActivity.class,
            ShowHRCarActivity.class,
            CarRecordListActivity.class,
            CarViolationListActivity.class,
            CarAccidentListActivity.class,
            CarInsuranceListActivity.class,
            CarUseListActivity.class
    };

    @Override
    public void itemClick(int p) {
        startActivity(classes[p]);
    }

    @Override
    public void initEnterData() {
        initTopTitleBar(View.VISIBLE, "车辆管理");
        enterBeans.add(new EnterBean("车辆列表"));
        enterBeans.add(new EnterBean("车辆审批"));
        enterBeans.add(new EnterBean("车辆保养记录"));
        enterBeans.add(new EnterBean("车辆违章"));
        enterBeans.add(new EnterBean("车辆事故"));
        enterBeans.add(new EnterBean("车辆保险"));
        enterBeans.add(new EnterBean("车辆使用记录"));
        dataBinding.recyclerView.addItemDecoration(new SectionDividerItemDecoration(this)
                .setLeftPadding(DensityUtil.percentW(30))
                .setRightPadding(DensityUtil.percentW(40)));

    }
}
